
<%--
  Created by IntelliJ IDEA.
  User: honor
  Date: 2025/7/29
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>编辑文章</title>
  <link rel="icon" href="./favicon/favicon.ico" type="image/x-icon">
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f9;
      margin: 0;
      padding: 20px;
    }
    .container {
      max-width: 600px;
      margin: auto;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    h2 {
      text-align: center;
      color: #333;
    }
    .form-control {
      width: 100%;
      padding: 10px;
      margin-top: 8px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    textarea.form-control {
      height: 150px;
    }
    .btn {
      background-color: #5cb85c;
      color: white;
      padding: 10px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      width: 100%;
    }
    .btn:hover {
      background-color: #4cae4c;
    }
  </style>
</head>
<body>
<div class="container">
  <h2>编辑文章</h2>
  <form action="articleServlet?method=addArticle" method="post">
    <div class="mb-3">
      <label for="title">标题</label>
      <input type="text" class="form-control" id="title" name="title" required>
    </div>
    <div class="mb-3">
      <label for="content">正文</label>
      <textarea class="form-control" id="content" name="content" rows="6" required></textarea>
    </div>
    <button type="submit" class="btn btn-success">保存</button>
  </form>
</div>
</body>
</html>



